import { useParams } from 'react-router-dom'

export default function RankingList (props) {
  const params = useParams()
  return (
    <div>
      <p>props获取参数：{props.match.params.id}</p>
      <p>hook获取参数：{params.id}</p>
    </div>
  )
}